<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function(){
		/* 为此页面的所有"a"标签加个click事件,获取所有hidden隐藏域的参数,并拼为添加到标签a的href中 */
		/* $("a").click(function(){
			var serializeVal = $(":hidden").serialize();
			var href = this.href + "&" + serializeVal;
			window.location.href = href;
			return false;
		}); */
		
		/* 给a节点的onclick属性赋值 */
		$("a").each(function() {
			this.onclick = function(){
				var serializeVal = $(":hidden").serialize();
				var href = this.href + "&" + serializeVal;
				window.location.href = href;
				return false;
			};
		});
	});
</script>

<!-- 使用隐藏域在翻页过程中保持查询条件 -->
<input type="hidden" name="minPrice" value="${param.minPrice }" />
<input type="hidden" name="maxPrice" value="${param.maxPrice }" />
